import {
    request
} from "./request";
import qs from "qs";


//获取公司列表
export function getCompanyList(obj) {
    return request({
        url: "scUser/getCompanyList",
        method: "post",
        data: qs.stringify(obj)
    });
}
//根据公司id获取全部推广员申请
export function getPromoterApplyList(obj) {
    return request({
        url: "ScCompany/getPromoterApplyList",
        method: "post",
        data: qs.stringify(obj)
    });
}
//根据公司id获取推广员列表
export function getpromoterList(obj) {
    return request({
        url: "scUser/getpromoterList",
        method: "post",
        data: qs.stringify(obj)
    });
}
//给推广员发放佣金
export function addCommission(obj) {
    return request({
        url: "scUser/addCommission",
        method: "post",
        data: qs.stringify(obj)
    });
}
//获取给推广员发放佣金的记录
export function listCommission(obj) {
    return request({
        url: "scUser/listCommission",
        method: "post",
        data: qs.stringify(obj)
    });
}
//提交推广员离职申请
export function PromoterDown(obj) {
    return request({
        url: "scUser/PromoterDown",
        method: "post",
        data: qs.stringify(obj)
    });
}
//成为推广员审核
export function applyPromoter(obj) {
    return request({
        url: "scUser/applyPromoter",
        method: "post",
        data: qs.stringify(obj)
    });
}
//推广员审核通过
export function PromoterDownApply(obj) {
    return request({
        url: "scUser/PromoterDownApply",
        method: "post",
        data: qs.stringify(obj)
    });
}
//获取用户邀请的人
export function listMyUser(obj) {
    return request({
        url: "scUser/listMyUser",
        method: "post",
        data: qs.stringify(obj)
    });
}